package com.py.credit.service;

import java.util.List;
import java.util.Map;

import com.py.credit.entity.Column;
import com.py.credit.entity.SharingMetric;
import com.py.credit.entity.SharingMetricInfo;
import com.py.framework.core.common.Page;

public interface SharingMetricService {

	List<Column> getSharingColumns(String kId);

	List<Map<String, Object>> getByConditionForPage(List<String> showColumns, String[] additionalColumns,
			String condition, Page page);

	void add(SharingMetricInfo sharingMetricInfo);

	void addColumns(int id, List<SharingMetric> parseArray);

	Integer getCountByKId(Integer kId);

	void del(String ids);

	List<Column> getSharingMetricByKid(String kId);

	SharingMetricInfo getMetricInfoById(String id);

	void updateDbMetrics(int infoId, List<SharingMetric> addColumns, List<SharingMetric> updateColumns,
			List<SharingMetric> delColumns);

}
